﻿using System;

namespace YmtAuth.Domain
{
    public interface IEntity<TKey>
    {      
        TKey Id { get; set; }
    }

    public interface IEntityMappingToCollections
    {
        string DBName { get; }
        string TBName { get; }
    }

    [Obsolete("使用IEntity<>")]
    public interface IEntity
    {
        object _id { get; }
        string DbName { get; }
        string TbName { get; }
    }
}
